﻿<PageFunction
    x:Class="Milkify.Views.AuthenticationControl"
    x:TypeArguments="sys:String"
    Title="Authenticate"
    KeepAlive="True"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <StackPanel
        Orientation="Vertical">
        <TextBlock
            TextWrapping="Wrap" 
            Style="{DynamicResource AuthenticateLinkStyle}">
            <Hyperlink Command="{Binding NavigateToAuthorizeCommand}">Please login to Remember The Milk</Hyperlink>
        </TextBlock>
        <TextBlock TextWrapping="Wrap" Style="{DynamicResource ParagraphTextStyle}">
            When clicking on the link above, you will be taken to the
            <Hyperlink NavigateUri="http://www.rememberthemilk.com">Remember The Milk</Hyperlink>
            website. You'll need to log in to your account, and if you haven't done so yet,
            grant Milkify access rights to your information.
        </TextBlock>
        <TextBlock TextWrapping="Wrap" Style="{DynamicResource ParagraphTextStyle}">
            When you're done, please come back here and click Continue.
        </TextBlock>
        <Button
            Name="ButtonContinue"
            Command="{Binding AuthenticateCommand}"
            Content="Continue" />
        <TextBlock TextWrapping="Wrap" Name="TextErrorMessage" Style="{DynamicResource ErrorTextStyle}" />
    </StackPanel>
</PageFunction>
